fix: Windows Japanese locale support and stability improvements - #10
Merged
Conversation
- selector_utils: replace parallel task approach with CSS combined selector to prevent Playwright internal Future leaks - proxy/server: ignore ConnectionResetError and Japanese locale error messages (WinError 10053/10054), use class name in error matching - worker/pool: free ports before starting worker, add 60s health check grace period - launch_camoufox: add /F flag to taskkill on Windows to force process termination - page_controller: prioritize JS Injection for Max Output Tokens, improve system prompt panel close logic - gateway: add CORS middleware, handle empty request body gracefully - request_processor: downgrade normal client disconnect log from WARNING to DEBUG
- launch_camoufox: expand Firefox memory optimization prefs (disable telemetry, prefetch, disk cache; reduce JS heap limits; smaller window size) - worker/pool: free STREAM proxy port before worker start; increase initial health check delay to 90s to allow workers time to fully initialize
- auto_update.bat: fetch latest from origin/main, apply git pull and uv sync if updates are available; skips gracefully if git is not found or network is unavailable - start_webui.bat, start_cmd.bat: call auto_update.bat before launching
- model_management: skip page reload if browser has been closed - service: increase worker startup interval from 3s to 15s to prevent resource exhaustion when starting many workers simultaneously - launch_camoufox: increase WebSocket endpoint capture timeout from 45s to 90s
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes several issues encountered on Windows with Japanese locale settings, and improves overall stability.
Changes
Bug Fixes
selector_utils.py: Replace parallel task approach with CSS combined selector (selector1, selector2) to prevent Playwright internal Future leaks that caused spurious timeout errorsproxy/server.py: IgnoreConnectionResetErrorand Japanese locale error messages (WinError 10053/10054); use class name in error string matching to handle exceptions with empty messagesrequest_processor.py: Downgrade normal client disconnect log from WARNING to DEBUG (disconnect after response is complete is expected behavior)Windows Environment
worker/pool.py: Free occupied ports (API port + Camoufox port) before starting a worker to preventEADDRINUSEerrors on restart; add 60s health check grace period after worker startlaunch_camoufox.py: Add/Fflag totaskkillon Windows to force process terminationFeature Improvements
page_controller.py: Prioritize JS Injection strategy for Max Output Tokens input (avoids Angular spinner reset issue); improve system prompt panel close logic to use button click instead of Escape keygateway.py: Add CORS middleware to allow dashboard access; handle empty request body with 400 error instead of crashing